﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    @Html.Partial("_MetaTags")
    <title>@(string.IsNullOrEmpty(ViewBag.Keywords) ? "Tìm kiếm" : ViewBag.Keywords)</title>
    <link href="~/Content/css/master-ResetCSS.css" rel="stylesheet" />
    <link href="~/Content/css/master-GlobalResults.css" rel="stylesheet" />
    <link href="~/Content/css/layout.css" rel="stylesheet" />
    <link href="~/Content/css/index.css" rel="stylesheet" />
    <script src="~/Content/js/jquery-1.6.4.min.js"></script>
    <script src="~/Content/js/layout.js"></script>
    <script src="~/Content/js/index.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            var content = $(".content").width();
            var leftside = $(".leftside").width();
            var marginLeftSide = leftside / 14;
            $(".leftside").css("margin-right", marginLeftSide);

            var heightHeader = 60;
            var heightHeaderBox = $("#header .headerbox").height();
            var padding = (60 - heightHeaderBox) / 2;
            $("#header .headerbox").css("padding-top", padding);
            $("#header .headerbox").css("padding-bottom", padding);
        });
    </script>

    @RenderSection("scripts", false)
    @Html.Partial("_GoogleAnalytics")
</head>

<body>
    @Html.Partial("_Header")
    @if(ViewBag.SearchProvider == "G")
    {
        @Html.Partial("_GSearchBox")
    }
    <input type="hidden" name="keywords" value="@ViewBag.Keywords" />
    <div id="wrapper">
        @RenderBody()
	    @Html.Partial("_Footer")
    </div><!-- #wrapper -->
</body>
</html>
